package encomendaFacil.bean;

public class User {

	private Long id;
	private String name;
	private String password;
	private String login;
	private String phone;
	
	public User() {}
	
	public User(Long id, String name, String login, String password, String phone) {
		this.id = id;
		this.name = name;
		this.login = login;
		this.password = password;
		this.phone = phone;
	}
	
	public Long getId() {
		return id;
	}
	public String getName() {
		return name;
	}
	public String getPassword() {
		return password;
	}
	public String getLogin() {
		return login;
	}
	public String getPhone() {
		return phone;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}

	public boolean hasId(){
		if (id == null) {
			return false;
		}
		return true;
	}
}
